<template>
  <div class="myorder">
    <div class="headbox">
      <div class="icon">
        <img
          @click="gomyindex"
          class="iconleft"
          src="../../../components/My/image/weibiaoti.png"
          alt=""
        />
        <h1>我的订单</h1>
      </div>
    </div>
    <div class="mytab">
      <van-tabs v-model="active">
        <van-tab title="全部">
          <div class="vant-img">
            <img
              src="../../../components/My/image/guanzhu_icon_photo.png"
              alt=""
            />
            <p>暂无订单0~</p>
          </div>
        </van-tab>
        <van-tab title="待付款">
          <div class="vant-img">
            <img
              src="../../../components/My/image/guanzhu_icon_photo.png"
              alt=""
            />
            <p>暂无订单1~</p>
          </div>
        </van-tab>
        <van-tab title="待发货">
          <div class="vant-img">
            <img
              src="../../../components/My/image/guanzhu_icon_photo.png"
              alt=""
            />
            <p>暂无订单2~</p>
          </div>
        </van-tab>
        <van-tab title="待收货">
          <div class="vant-img">
            <img
              src="../../../components/My/image/guanzhu_icon_photo.png"
              alt=""
            />
            <p>暂无订单3~</p>
          </div>
        </van-tab>
        <van-tab title="待评价">
          <div class="vant-img">
            <img
              src="../../../components/My/image/guanzhu_icon_photo.png"
              alt=""
            />
            <p>暂无订单4~</p>
          </div>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    gomyindex() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
.myorder {
  width: 750px;
  height: 1624px;
  background: #f5f5f5;
  .headbox {
    width: 100%;
    height: 220px;
    background: #ffffff;
  }
  .icon {
    margin-left: 42px;
    height: 162px;
    line-height: 48px;
    padding-top: 114px;
    margin-right: 32px;
    margin-bottom: 54px;
  }
  .icon .iconleft {
    float: left;
    width: 30px;
    height: 30px;
    display: block;
    margin: 9px 0px;
  }
  .icon .iconright {
    float: left;
    width: 30px;
    height: 30px;
    margin-left: 230px;
    margin-top: 10px;
  }
  .icon h1 {
    float: left;
    width: 200px;
    height: 48px;
    position: relative;
    left: 275px;
    font-size: 35px;
  }
  .van-tab__text--ellipsis {
    text-align: center;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 100px;
    height: 3.25rem;
  }
  .van-tabs__nav--line {
    padding: 0 0px 0 0px;
    font-size: 3.125rem;
  }
  .van-tabs__nav {
    padding: 22px 0px;
    height: 4.25rem;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    background-color: #fff;
    -webkit-user-select: none;
    user-select: none;
    background-color: transparent;
  }
  .van-tab--active {
    color: #323233;
    font-weight: 500;
    background: #d3d3d3;
    border-radius: 50px 50px 50px 50px;
  }
  .van-tabs--line .van-tabs__wrap {
    height: 50px;
    padding: 6px 0px;
    height: 150px;
  }
  .van-tabs__line {
    position: absolute;
    bottom: 0.9375rem;
    left: 0;
    z-index: 1;
    width: 2.5rem;
    height: 0.1875rem;
    // background-color: #ee0a24;
    border-radius: 0.1875rem;
    background-color: transparent;
  }
  .van-tab__pane,
  .van-tab__pane-wrapper {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    height: 1250px;
    // background: red;
  }
  .vant-img {
    text-align: center;
    width: 510px;
    height: 550px;
    margin: 92px 120px 0px 120px;
    // background: #ee0a24;
    font-size: 24px;
  }
}
</style>
